﻿namespace Example
{
    using System;

    using Dates;

    using Xunit;

    public sealed class DatesDateSpanFacts
    {
        [Fact]
        public void op_GetDifference_DateInterval_DateTime_DateTime()
        {
            var start = DateTime.Now;
            var end = DateTime.Now.AddDays(5);

            const int expected = 5;
            var actual = DateSpan.GetDifference(DateInterval.Days, start, end);

            Assert.Equal(expected, actual);
        }
    }
}